POST
/
1
/
clusters
/
mapping
/
search
// Initialize the client
var client = new SearchClient(new SearchConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY"));

// Call the API
var response = await client.SearchUserIdsAsync(
  new SearchUserIdsParams
  {
    Query = "test",
    ClusterName = "theClusterName",
    Page = 5,
    HitsPerPage = 10,
  }
);
// >LOG
{
  "hits": [
    {
      "userID": "user1",
      "clusterName": "c11-test",
      "nbRecords": 3,
      "dataSize": 481,
      "objectID": "<string>",
      "_highlightResult": {
        "userID": {
          "value": "<em>George</em> <em>Clo</em>oney",
          "matchLevel": "none",
          "matchedWords": [
            "action"
          ],
          "fullyHighlighted": true
        },
        "clusterName": {
          "value": "<em>George</em> <em>Clo</em>oney",
          "matchLevel": "none",
          "matchedWords": [
            "action"
          ],
          "fullyHighlighted": true
        }
      }
    }
  ],
  "nbHits": 20,
  "page": 0,
  "hitsPerPage": 20,
  "updatedAt": "2023-07-04T12:49:15Z"
}

Authorizations

x-algolia-application-id
string
header
required

Your Algolia application ID.

x-algolia-api-key
string
header
required

Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.

Body

application/json

OK

Response

200
application/json

OK

userIDs data.